package me.raih.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author Raih
 * @Time 2020/11/28  16:10
 *
 * 关于分页的一些东东
 */
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@Scope(value = "prototype")
public class PageBean<T> {

    private Integer totalCount;     //总记录数
    private Integer totalPage;      //总页数
    private Integer currentPage;    //当前页面
    private Integer pageSize;       //每页记录数
    private List<T> list;           //每页的数据集合

}
